class d_TeleportModule {
	idd = -1;
	movingEnable = false;
	onLoad="uiNamespace setVariable ['X_TELE_DIALOG', _this select 0];d_teleport_dialog_open = true;d_do_ma_update_n = true;0 spawn d_fnc_teleupdate_dlg";
	onUnLoad="uiNamespace setVariable ['X_TELE_DIALOG', nil];d_teleport_dialog_open = false;d_do_ma_update_n = false";
	class controlsBackground {
		class bg1 : RscBG {
			x = SafeZoneXAbs;
			y = SafeZoneY;
			w = SafeZoneWAbs;
			h = SafeZoneH;
			idc = 100101;
			colorBackground[] = {0, 0, 0, 0.98};
		};
	};
	class controls {
		class respawn: XD_ButtonBase2 {
			idc = 100102;
			text = "$STR_DOM_MISSIONSTRING_1250"; 
			action = "call d_fnc_beam_tele";
			x = "SafeZoneX + SafeZoneW - 0.37";
			y = 0.67;
			w = 0.3;
			default = true;
		};
		class cancelb: respawn {
			idc = 100103;
			text = "$STR_DOM_MISSIONSTRING_1229"; 
			action = "CloseDialog 0";
			x = "SafeZoneX + 0.04";
			y = "SafeZoneY + SafeZoneH - 0.09";
			default = false;
		};
		class BaseButton: cancelb {
			idc = 100107;
			text = "$STR_DOM_MISSIONSTRING_1251"; 
			action = "[0] call d_fnc_x_update_target";
			x = "SafeZoneX + SafeZoneW - 0.37";
			y = 0.22;
		};
		class Mr1Button: BaseButton {
			idc = 100108;
			text = "$STR_DOM_MISSIONSTRING_1252";
			action = "[1] call d_fnc_x_update_target";
			y = 0.29;
		};
		class Mr2Button: BaseButton {
			idc = 100109;
			text = "$STR_DOM_MISSIONSTRING_1253";
			action = "[2] call d_fnc_x_update_target";
			y = 0.36;
		};
		// TYRGHEN
		class LeaderButton: BaseButton {
			idc = 100113;
			text = "$STR_DOM_MISSIONSTRING_2005"; 
			action = "[3] call d_fnc_x_update_target";
			y = 0.43;
		};
		// TYRGHEN
		class BunkerButton: BaseButton {
			idc = 100114;
			text = "$STR_DOM_MISSIONSTRING_2080"; 
			action = "[4] call d_fnc_x_update_target";
			y = 0.50;
		};
		class Tdestination : SXRscText {
			idc = 100110;
			x = "SafeZoneX + SafeZoneW - 0.37";
			y = 0.57;
			w = 0.3;
			h = 0.032;
			sizeEx = 0.032;
			text = "";
		};
		class dtext : Tdestination {
			x = "SafeZoneX + SafeZoneW - 0.2";
			y = "SafeZoneY + SafeZoneH - 0.09";
			h = 0.1;
			font = "PuristaMedium";
			sizeEx = 0.03921;
			XCTextBI;
			text = __DOM_NVER_STR__;
		};
		class maprespawn : XD_RscMapControl {
			idc = 100104;
			x = "SafeZoneX + 0.3";
			y = "SafeZoneY + 0.3";
			w = "(SafeZoneX + SafeZoneW - 0.52) - (SafeZoneX + 0.3)";
			h = "(SafeZoneY + SafeZoneH) - 0.3 - (SafeZoneY + 0.4)";
			colorBackground[] = {1, 1, 1, 1};
		};
		class mr1inair : SXRscText {
			idc = 100105;
			x = "SafeZoneX + SafeZoneW - 0.37";
			y = 0.75;
			w = 0.4;
			h = 0.032;
			sizeEx = 0.032;
			text = "";
			shadow = 0;
		};
		class mr2inair : mr1inair {
			idc = 100106;
			y = 0.78;
			text = "";
		};
		class respawncaption : SXRscText {
			idc = 100111;
			x = "(((SafeZoneX + SafeZoneW - 0.42) - (SafeZoneX + 0.1)) / 2) - 0.1 + (SafeZoneX + 0.1)";
			y = "SafeZoneY + 0.02";
			w = 0.6;
			h = 0.2;
			font = "PuristaMedium";
			sizeEx = 0.03921;
			XCTextBI;
			text = "$STR_DOM_MISSIONSTRING_1254";
		};
		class changepos : respawncaption {
			idc = 100112;
			y = "SafeZoneY + 0.2 + (SafeZoneY + SafeZoneH) - 0.3";
			text = "$STR_DOM_MISSIONSTRING_1255";
		};
	};
};
